package output;

import java.io.StringWriter;

/**
 * Not much going on here ..
 * @author Monika
 */

public class DebugWriter {
	
	private StringWriter writer;
	
	public DebugWriter(StringWriter writer) {
		this.writer=writer;
	}

/*	public void formatCalendarData(Calendar calendar) {
	//	writer.append("Calendar id: "+calendar.getCalendarID()).append("\n");
		for (Event event : calendar.getEvents()){
			writer.append("Event: "+event.getEventTitle()).
				append("\n").
				append("  "+event.getStartTime().getDay()+"."+event.getStartTime().getMonth()+"."+event.getStartTime().getYear()+", "+event.getStartTime().getHour()+":"+event.getStartTime().getMinute()).
				append("\n").
				append("  "+event.getEndTime().getDay()+"."+event.getEndTime().getMonth()+"."+event.getEndTime().getYear()+", "+event.getEndTime().getHour()+":"+event.getEndTime().getMinute()).
				append("\n");
		}				
	}*/
	
	public void writeln() {
		writer.append("<br/>");
	}

	public void writeln(String string) {
		write(string);
		writeln();
	}

	public void write(String string) {
		writer.append(string);		
	}
	
}
